
<template>
    <div class="spanControl-list" style="width: 100%;margin-left: 0!important;">
        <el-card class="box-card card-head" style="margin: 0px; width: 100%; min-height: 99%">
            <div slot="header" class="clearfix">
                <span>查看培训资料</span>
            </div>

            <div class="text item">
                <el-form label-position="left" inline class="display-form">
                        <el-form-item label="标识">
                            <span>{{ trainingData.EId }}</span>
                        </el-form-item>
                        <el-form-item label="名称">
                            <span>{{ trainingData.name }}</span>
                        </el-form-item>
                        <el-form-item label="资料名称">
                            <span>{{ trainingData.dataName }}</span>
                        </el-form-item>
                        <el-form-item label="资料类别">
                            <span>{{ trainingData.dataType }}</span>
                        </el-form-item>
                        <el-form-item label="发布时间">
                            <span>{{ trainingData.releaseTime }}</span>
                        </el-form-item>
                        <el-form-item label="发布人">
                            <span>{{ trainingData.publisher }}</span>
                        </el-form-item>
                        <el-form-item label="资料简介">
                            <span>{{ trainingData.dataIntroduction }}</span>
                        </el-form-item>
                        <el-form-item label="备注">
                            <span>{{ trainingData.remark }}</span>
                        </el-form-item>
                        <el-form-item label="创建人">
                            <span>{{ trainingData.createId }}</span>
                        </el-form-item>
                        <el-form-item label="创建时间">
                            <span>{{ trainingData.createDatetime }}</span>
                        </el-form-item>
                        <el-form-item label="修改人">
                            <span>{{ trainingData.updateId }}</span>
                        </el-form-item>
                        <el-form-item label="修改时间">
                            <span>{{ trainingData.updateDatetime }}</span>
                        </el-form-item>
                </el-form>
            </div>
        </el-card>
    </div>
</template>

<script>
import {TrainingDataService} from './TrainingDataService';

export default {
    components: {
    },
    data() {
        return {
            trainingData:{},
        }
    },
    methods: {
        findTrainingDataForView(trainingDataId)//查找培训资料
        {
            TrainingDataService.findTrainingDataForView(trainingDataId).then((resp) => {
                this.trainingData = resp.data;
        }).catch((error) => {
            this.$message({
            type: 'error',
            message: '查询培训资料出错'
        })
        })
        },
    },
    created() {
        const trainingDataId = this.$route.params.trainingDataId;
        this.findTrainingDataForView(trainingDataId);
    },
}

</script>
<style scoped lang="scss">

</style>
